// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.AssetsInvestmentProductDao;
import com.liuxinlong.modules.entity.InvestmentProduct;
import com.liuxinlong.modules.mapper.AssetsInvestmentProductMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * AssetsInvestmentProductDaoImpl
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2024年09月05日
 */
@Service
public class AssetsInvestmentProductDaoImpl extends ServiceImpl<AssetsInvestmentProductMapper, InvestmentProduct> implements AssetsInvestmentProductDao {

    @Override
    public List<InvestmentProduct> pageInvestmentProductInfo(Map<String, Object> queryParam) {
        return baseMapper.pageInvestmentProductInfo(queryParam);
    }

    @Override
    public int getInvestmentProductInfoCount(Map<String, Object> queryParam) {
        return baseMapper.getInvestmentProductInfoCount(queryParam);
    }

    @Override
    public void deleteByInvestmentId(String investmentId) {
        baseMapper.deleteByInvestmentId(investmentId);
    }

}
